package com.emperor.mapper;

import com.emperor.entity.VmType;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VmTypeMapper {

    List<VmType> findAll(String className);

    void addVmType(VmType vmType);

    void updateVmType(Integer typeId, VmType vmType);

    @Delete("delete from tb_vm_type where type_id = #{typeId}")
    void deleteVmType(Integer typeId);
}
